﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace QualitySupervision.Models
{
    public class Contract
    {
        ///// <summary>
        ///// 外键
        ///// </summary>
        //public int ProjectID { get; set; }

        /// <summary>
        /// 移动项目编号
        /// </summary>
        public string ProjectNo { get; set; }

        /// <summary>
        /// 区县
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 合同类别
        /// </summary>
        public string ContractKind { get; set; }

        /// <summary>
        /// 委托金额
        /// </summary>
        public float? EntrustMoney { get; set; }

        /// <summary>
        /// 成本金额
        /// </summary>
        public float? CostMoney { get; set; }

        /// <summary>
        /// 不含税价
        /// </summary>
        public float? PriceExcludingTax { get; set; }

        /// <summary>
        /// 结算金额
        /// </summary>
        public float? SettlementMoney { get; set; }

        /// <summary>
        /// 结算金额不含税
        /// </summary>
        public float? SettlementMoneyExcludingTax { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public float? Tax { get; set; }

        /// <summary>
        /// 维护周期（年）
        /// </summary>
        public string MaintenanceCycle { get; set; }

        /// <summary>
        /// 周三更新备注（政企部的备注）
        /// </summary>
        public string Zhousanbeizhu { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string Supplier { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string Contacts { get; set; }

        /// <summary>
        /// 文件标识Id
        /// </summary>
        [Key] //主键 
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]  //设置自增
        public int ID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        //public Project Project { get; set; }
    }
}
